package com.xjoyt.pay.master.dao;

import java.util.List;
import java.util.Map;

import com.xjoyt.pay.dto.PageParam;
import com.xjoyt.pay.dto.PageResult;
import com.xjoyt.pay.master.params.CompanyProfitGroupParam;
import com.xjoyt.pay.master.params.CompanyProfitPageParam;
import com.xjoyt.pay.master.po.CompanyProfit;

public interface CompanyProfitRepositoryCustom {

	CompanyProfit findOneByOrderIdAndCompanyId(String orderId, String companyId);

	PageResult<CompanyProfit> loadPage(PageParam<CompanyProfitPageParam> param);

	List<Map<String, Object>> sum(List<String> companyIds, CompanyProfitGroupParam param);

	List<Map<String, Object>> profitSum(List<String> companyIds, CompanyProfitPageParam param);

}
